async_job
A simple trait for async cron jobs in Rust.
Getting Started
cargo add async_job
Usage
use ;
;
If you need to use a single threaded env disable the default feature and set the feature rt
,
Feature Flags
rt
: Single threaded tokio runtime.rt-multi-thread
: Multi threaded tokio runtime. Enabled by default
Examples
Run the example with cargo run --example example